package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 *
 * @author WeiZiDong
 */
@Table(name = "`onl_cgform_field`")
@Data
@ApiModel("")
public class OnlCgformField implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "主键ID", example = "String")
    private String id;
    @Column(name = "`cgform_head_id`")
    @ApiModelProperty(value = "表ID", example = "String")
    private String cgformHeadId;
    @Column(name = "`db_field_name`")
    @ApiModelProperty(value = "字段名字", example = "String")
    private String dbFieldName;
    @Column(name = "`db_field_txt`")
    @ApiModelProperty(value = "字段备注", example = "String")
    private String dbFieldTxt;
    @Column(name = "`db_field_name_old`")
    @ApiModelProperty(value = "原字段名", example = "String")
    private String dbFieldNameOld;
    @Column(name = "`db_is_key`")
    @ApiModelProperty(value = "是否主键0否1是", example = "1")
    private Byte dbIsKey;
    @Column(name = "`db_is_null`")
    @ApiModelProperty(value = "是否允许为空0否1是", example = "1")
    private Byte dbIsNull;
    @Column(name = "`db_type`")
    @ApiModelProperty(value = "数据库字段类型", example = "String")
    private String dbType;
    @Column(name = "`db_length`")
    @ApiModelProperty(value = "数据库字段长度", example = "1")
    private Integer dbLength;
    @Column(name = "`db_point_length`")
    @ApiModelProperty(value = "小数点", example = "1")
    private Integer dbPointLength;
    @Column(name = "`db_default_val`")
    @ApiModelProperty(value = "表字段默认值", example = "String")
    private String dbDefaultVal;
    @Column(name = "`dict_field`")
    @ApiModelProperty(value = "字典code", example = "String")
    private String dictField;
    @Column(name = "`dict_table`")
    @ApiModelProperty(value = "字典表", example = "String")
    private String dictTable;
    @Column(name = "`dict_text`")
    @ApiModelProperty(value = "字典Text", example = "String")
    private String dictText;
    @Column(name = "`field_show_type`")
    @ApiModelProperty(value = "表单控件类型", example = "String")
    private String fieldShowType;
    @Column(name = "`field_href`")
    @ApiModelProperty(value = "跳转URL", example = "String")
    private String fieldHref;
    @Column(name = "`field_length`")
    @ApiModelProperty(value = "表单控件长度", example = "1")
    private Integer fieldLength;
    @Column(name = "`field_valid_type`")
    @ApiModelProperty(value = "表单字段校验规则", example = "String")
    private String fieldValidType;
    @Column(name = "`field_must_input`")
    @ApiModelProperty(value = "字段是否必填", example = "String")
    private String fieldMustInput;
    @Column(name = "`field_extend_json`")
    @ApiModelProperty(value = "扩展参数JSON", example = "String")
    private String fieldExtendJson;
    @Column(name = "`field_default_value`")
    @ApiModelProperty(value = "控件默认值，不同的表达式展示不同的结果。1.纯字符串直接赋给默认值；2.#{普通变量}；3.{{动态JS表达式}}；4.${填值规则编码}；填值规则表达式只允许存在一个，且不能和其他规则混用。", example = "String")
    private String fieldDefaultValue;
    @Column(name = "`is_query`")
    @ApiModelProperty(value = "是否查询条件0否1是", example = "1")
    private Byte isQuery;
    @Column(name = "`is_show_form`")
    @ApiModelProperty(value = "表单是否显示0否1是", example = "1")
    private Byte isShowForm;
    @Column(name = "`is_show_list`")
    @ApiModelProperty(value = "列表是否显示0否1是", example = "1")
    private Byte isShowList;
    @Column(name = "`is_read_only`")
    @ApiModelProperty(value = "是否是只读（1是0否）", example = "0")
    private Byte isReadOnly;
    @Column(name = "`query_mode`")
    @ApiModelProperty(value = "查询模式", example = "String")
    private String queryMode;
    @Column(name = "`main_table`")
    @ApiModelProperty(value = "外键主表名", example = "String")
    private String mainTable;
    @Column(name = "`main_field`")
    @ApiModelProperty(value = "外键主键字段", example = "String")
    private String mainField;
    @Column(name = "`order_num`")
    @ApiModelProperty(value = "排序", example = "1")
    private Integer orderNum;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "修改人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "修改时间", example = "2019-05-05 17:55:31")
    private Date updateTime;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`converter`")
    @ApiModelProperty(value = "自定义值转换器", example = "String")
    private String converter;
    @Column(name = "`query_def_val`")
    @ApiModelProperty(value = "查询默认值", example = "String")
    private String queryDefVal;
    @Column(name = "`query_dict_text`")
    @ApiModelProperty(value = "查询配置字典text", example = "String")
    private String queryDictText;
    @Column(name = "`query_dict_field`")
    @ApiModelProperty(value = "查询配置字典code", example = "String")
    private String queryDictField;
    @Column(name = "`query_dict_table`")
    @ApiModelProperty(value = "查询配置字典table", example = "String")
    private String queryDictTable;
    @Column(name = "`query_show_type`")
    @ApiModelProperty(value = "查询显示控件", example = "String")
    private String queryShowType;
    @Column(name = "`query_config_flag`")
    @ApiModelProperty(value = "是否启用查询配置1是0否", example = "String")
    private String queryConfigFlag;
    @Column(name = "`query_valid_type`")
    @ApiModelProperty(value = "查询字段校验类型", example = "String")
    private String queryValidType;
    @Column(name = "`query_must_input`")
    @ApiModelProperty(value = "查询字段是否必填1是0否", example = "String")
    private String queryMustInput;
    @Column(name = "`sort_flag`")
    @ApiModelProperty(value = "是否支持排序1是0否", example = "String")
    private String sortFlag;

    private static final long serialVersionUID = 1L;
}
